package com.sky.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ThreadPoolPerformanceAop {


    @Pointcut("execution(* com.sky.mapper.user.OrderMapper.selectCountByStatus(..))")
    public void pt2(){
    }

    @Before("pt2()")
    public void timeStop(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
